package com.ycMc.mapper;

import com.ycMc.domain.ProductBrand;
import com.ycMc.domain.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by libo2 on 2017/8/15.
 */
@Repository
public interface SupplierMapper {

    public void insert(Supplier supplier);

    public void delete(@Param("id") int id);

    public void update(Supplier supplier);

    public List<Supplier> select(@Param("supplierName") String supplierName, @Param("supplierPhone") String supplierPhone, @Param("supplierAddress")String supplierAddress,@Param("offset") int offset, @Param("pageSize") int pageSize);

    public Supplier selectOne(@Param("id") int id);
}
